package IC.Semantics.symbols;

import IC.AST.Type;
import IC.Semantics.SemanticError;
import IC.Semantics.types.TypeTable;


/**
 * class to describe a symbol entry for method parameter (formal) 
 */
public class ParamSymbol extends SemanticSymbol{

	/**
	 * standard constructor
	 * @param name
	 * @param type
	 * @throws SemanticError
	 */
	public ParamSymbol(String name, Type type) {
		super(name, type.getLine(), TypeTable.getType(type), SemanticKind.PARAM);
	}
	
	/**
	 * constructor using forward referencing
	 * @param name
	 * @param type
	 * @param fref
	 * @throws SemanticError
	 */
	public ParamSymbol(String name, Type type, boolean fref) {
		super(name, type.getLine(), TypeTable.getType(type), SemanticKind.PARAM, fref);
	}

}
